Skip to main content

M-Bus to LoRaWAN - The Things Stack

Intergration manual focused on integration of our devices into The Things Stack network.

warning

WORK IN PROGRESS: This manual is currently being updated and may not contain all the necessary information.

Introduction

This manual provides a step-by-step guide for integrating the ACRIOS System converters ACR-CV-101L-M-D and ACR-CV-101L-M-EAC with The Things Stack LoRaWAN network server. The guide focuses on setting up application, registering devices, and configuring the connection between the devices and the network server.

Before You Start

Prerequisites

To successfully integrate your devices with The Things Stack, ensure you have the following:

  • A functional The Things Stack LoRaWAN network server (in this guide, we use the open-source version deployed on our own server but you can use the public servers as well).
  • LoRaWAN gateway connected to the network server
  • LoRaWAN devices such as ACR-CV-101L-M-D or ACR-CV-101L-M-EAC.
  • Device credentials (such as DevEUI, AppKey, and AppEUI) to properly configure the connection between your devices and the network server.

Creating Application

  1. Navigate to the Applications tab.
    tts
  2. Click on the Create application button.
    tts_app1
  3. Fill in the required fields and click on the Create application button.
    tts_app2

    After creation of the application, you will be redirected to the application overview page.

Registering Devices

  1. Click on the Register end device button in Application Overview.
  2. You can create general device or select end device from LoRaWAN Devices Repository:
    1. Creating general end device:
      1. Select Enter end device specifics manually, select Frequency Plan and LoRaWAN version, fill JoinEUI and click on Confirm button.
        tts_gd1
      2. Fill in the DevEUI and AppKey and click on the Register end device button.
        tts_gd2
        AppKey was censored for security reasons
      3. If you have followed all the steps correctly, your device should appear with its general and activation settings properly configured. This includes information such as the DevEUI, AppKey, AppEUI, and other LoRaWAN-specific settings.
        tts_gd3
      4. After successfull connection session information should appear.
        tts_gd4

Adding custom payload formatter for device

  1. Navigate to your device.
    tts_pf
  2. Click on the Payload Formatters tab and select Custom Javascript formatter in Uplink tab.
    tts_pf1
  3. Copy and paste the parser code into the Formatter code field:
    tts_pf2
    Show parser code or Download parser
  4. Paste the following payload into the Byte payload field and click on the Test decoder button to verify the parser code:
    01 01 68 13 13 68 08 05 73 78 56 34 12 0a 00 e9 7e 01 00 00 00 35 01 00 00 3c 16
    tts_pf3

    If the parser code is correct, the decoded payload will appear in the Decoded test payload field.

  5. Click on the Save changes button to save the parser code.